package test8;

public class PowerBoat extends Boat{
    //汽艇类PowerBoat继承船类Boat
    private int numberEgines;//引擎数
    private int fuelType;//燃料类型


    public PowerBoat(int registrationNo, double length, String manufacturer, int year,int numberEgines,int fuelType) {
        super(registrationNo, length, manufacturer, year);
        this.numberEgines = numberEgines;
        this.fuelType = fuelType;
    }
    public String toString (){
        return super.toString()+"船的引擎数为："+numberEgines+"船的燃料类型为："+fuelType;
    }
}
